﻿<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>MenuBarCreate - 语法 &amp; 使用 | AutoHotkey v2</title>
<meta name="description" content="The MenuBarCreate function creates a MenuBar object, which can be used to define a GUI menu bar." />
<meta name="ahk:equiv-v1" content="commands/Menu.htm" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script>
</head>
<body>

<h1>MenuBarCreate</h1>

<p>创建一个 <a href="../objects/Menu.htm">MenuBar 对象</a>, 该对象可用于定义 <a href="../objects/Gui.htm#MenuBar">GUI 菜单栏</a>.</p>

<pre class="Syntax">MenuBar := <span class="func">MenuBarCreate</span>()</pre>

<h2 id="Related">相关</h2>
<p><a href="../objects/Gui.htm#MenuBar">Gui.MenuBar</a>, <a href="MenuCreate.htm">MenuCreate</a>, <a href="../objects/Menu.htm">MenuBar object</a>, <a href="MenuFromHandle.htm">MenuFromHandle</a></p>

<h2 id="Examples">示例</h2>
<p>请参阅 <a href="../objects/Menu.htm#Examples">Menu 示例</a>.</p>

</body>
</html>